package com.dream.myqiyi.dao;

import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "NoteResources")
public class NoteResourceModel {
	@DatabaseField(id = true)
	public String guid;
	@DatabaseField
	public String noteGuid;
	@DatabaseField
	public int updateSequenceNumber;
	@DatabaseField
	public String dataHash;
	@DatabaseField
	public int dataSize;
	@DatabaseField(columnDefinition = "LONGBLOB",
			  dataType = DataType.BYTE_ARRAY)
	public byte[] dataBinary;
	@DatabaseField
	public String mime;
 	@DatabaseField
	public int width;
 	@DatabaseField
	public int height;
	@DatabaseField
	public int duration;
	@DatabaseField
	public boolean active;
	@DatabaseField
	public String attributeSourceUrl;
	@DatabaseField
	public long attributeTimestamp;
	@DatabaseField
	public double attributeLatitude;
	@DatabaseField
	public double attributeLongitude;
	@DatabaseField
	public double attributeAltitude;
	@DatabaseField
	public String attributeCameraMake;
	@DatabaseField
	public String attributeCameraModel;
	@DatabaseField
	public boolean attributeClientWillIndex;
	@DatabaseField
	public String attributeFileName;
	@DatabaseField
	public boolean attributeAttachment;
	@DatabaseField
	public boolean isDirty;

	public NoteResourceModel() {
		
	}
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("guid=").append(guid);
		//sb.append(", ").append("type=").append(type);
		return sb.toString();
	}

	public String getGuid() {
		return guid;
	}

	public void setGuid(String guid) {
		this.guid = guid;
	}

	public String getNoteGuid() {
		return noteGuid;
	}

	public void setNoteGuid(String noteGuid) {
		this.noteGuid = noteGuid;
	}

	public int getUpdateSequenceNumber() {
		return updateSequenceNumber;
	}

	public void setUpdateSequenceNumber(int updateSequenceNumber) {
		this.updateSequenceNumber = updateSequenceNumber;
	}

	public String getDataHash() {
		return dataHash;
	}

	public void setDataHash(String dataHash) {
		this.dataHash = dataHash;
	}

	public int getDataSize() {
		return dataSize;
	}

	public void setDataSize(int dataSize) {
		this.dataSize = dataSize;
	}

	public byte[] getDataBinary() {
		return dataBinary;
	}

	public void setDataBinary(byte[] dataBinary) {
		this.dataBinary = dataBinary;
	}

	public String getMime() {
		return mime;
	}

	public void setMime(String mime) {
		this.mime = mime;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public int getDuration() {
		return duration;
	}

	public void setDuration(int duration) {
		this.duration = duration;
	}

	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}

	public String getAttributeSourceUrl() {
		return attributeSourceUrl;
	}

	public void setAttributeSourceUrl(String attributeSourceUrl) {
		this.attributeSourceUrl = attributeSourceUrl;
	}

	public long getAttributeTimestamp() {
		return attributeTimestamp;
	}

	public void setAttributeTimestamp(long attributeTimestamp) {
		this.attributeTimestamp = attributeTimestamp;
	}

	public double getAttributeLatitude() {
		return attributeLatitude;
	}

	public void setAttributeLatitude(double attributeLatitude) {
		this.attributeLatitude = attributeLatitude;
	}

	public double getAttributeLongitude() {
		return attributeLongitude;
	}

	public void setAttributeLongitude(double attributeLongitude) {
		this.attributeLongitude = attributeLongitude;
	}

	public double getAttributeAltitude() {
		return attributeAltitude;
	}

	public void setAttributeAltitude(double attributeAltitude) {
		this.attributeAltitude = attributeAltitude;
	}

	public String getAttributeCameraMake() {
		return attributeCameraMake;
	}

	public void setAttributeCameraMake(String attributeCameraMake) {
		this.attributeCameraMake = attributeCameraMake;
	}

	public String getAttributeCameraModel() {
		return attributeCameraModel;
	}

	public void setAttributeCameraModel(String attributeCameraModel) {
		this.attributeCameraModel = attributeCameraModel;
	}

	public boolean isAttributeClientWillIndex() {
		return attributeClientWillIndex;
	}

	public void setAttributeClientWillIndex(boolean attributeClientWillIndex) {
		this.attributeClientWillIndex = attributeClientWillIndex;
	}

	public String getAttributeFileName() {
		return attributeFileName;
	}

	public void setAttributeFileName(String attributeFileName) {
		this.attributeFileName = attributeFileName;
	}

	public boolean isAttributeAttachment() {
		return attributeAttachment;
	}

	public void setAttributeAttachment(boolean attributeAttachment) {
		this.attributeAttachment = attributeAttachment;
	}

	public boolean isDirty() {
		return isDirty;
	}

	public void setDirty(boolean isDirty) {
		this.isDirty = isDirty;
	}

}
